<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="./theme/{|$theme|}/admincss.css" rel="stylesheet" type="text/css">
<title></title>
<script language="JavaScript">
function validate(theform) {
theform.xmlsubmit.disabled = true;
return true;
}
</script>
</head>
<body>

<form method=post name="raidlog" action="index.php?module=admin&act=RecordDkpByLogBD" onSubmit="return validate(this)">
<table width="100%">

<tr>
	<td width="10%">{|$lang.raid|}</td>
	<td><input type="text" name="raidname" value="[{|$raidData.start|date_format:"%Y-%m-%d %H:%M"|}]{|$raidData.zone|}" size="60"></td>
</tr>
<tr>
	<td>{|$lang.time|}</td>
	<td>{|$raidData.start|date_format:"%Y-%m-%d %H:%M"|} &nbsp;&nbsp;{|$raidData.start|date_format:"%Y-%m-%d %H:%M"|}-{|$raidData.end|date_format:"%Y-%m-%d %H:%M"|}&nbsp;&nbsp;<font color="green">{|$lang.total|}:{|$raidData.totalTime/60|}  {|$lang.minute|}</font></td>
</tr>
<tr>
	<td>{|$lang.user|}{|$lang.note23|}</td>
	<td>
		{|$raidData.totalMember|}
		<input type="hidden" name="membertotal" value="{|$totalMember|}">
		{|foreach item=val key=key from=$raidData.player|}
		<input type="hidden" name="members[]" value="{|$key|}">
		<input type="hidden" name="memberuid[]" value="{|$val.uid|}">
		{|/foreach|}
		<input type="hidden" name="eventTime" value="{|$raidData.start|date_format:"%Y-%m-%d %H:%M"|}">
		<input type="hidden" name="cid" value="{|$cid|}">
		<input type="hidden" name="etid" value="{|$etid|}">
	</td>
</tr>
<tr>
	<td>{|$lang.notes|}</td>
	<td><textarea name="notes" cols="70" rows="4">{|$raidData.zone|}</textarea></td>
</tr>


<!--line-->
<tr>
	<td colspan="2">
		<table width="90%">
		<tr class="title">
			<td>{|$lang.item|}</td>
			<td>{|$lang.dkp|}</td>
			<td>{|$lang.note24|}</td>
			<td>{|$lang.note44|}</td>
			<td>{|$lang.note42|}</td>
			<td>{|$lang.time|}</td>
		</tr>
		<tr>
			<td colspan="6">
				<input type="hidden" name="allaverevent" value="{|$eventDate|}{|$zone|}">
				{|if $smarty.cookies.wow_cfg_ispt == '1'|}
					<input name="aispt" type="checkbox" value="1" checked>
				{|else|}
					<input name="aispt" type="checkbox" value="1">
				{|/if|}
				<font color="red">{|$lang.note33|}</font>
				{|$raidData.totalItemdkp|}/{|$raidData.totalMember|} = {|$raidData.totalItemdkp/$raidData.totalMember|string_format:"%.2f"|}
			</td>
		</tr>
		{|foreach item=val key=key from=$raidData.nobossLoot|}
		{|if $val.state != '1'|}
		<tr bgcolor="{|cycle values="#252525,#161616"|}">
			<td><font color="#{|$val.color|}">{|$val.name|}</font></td>
			<td><input type="text" name="aitemcosts[]" value="{|$val.costs|}" size="5"></td>
			<td>
				<input type="text" name="aitemplayer[]" value="{|$val.player|}">
				<input type="hidden" name="oldplayer[]" value="{|$val.player|}">
			</td>
			<td>
				<select name="toboss[]">
				{|html_options options=$raidData.bossArray selected=$val.boss|}
				</select>
			</td>
			<td>{|$val.boss|}</td>
			<td>
				{|$val.time|date_format:"%Y-%m-%d %H:%M"|}
				<input type="hidden" name="aitemname[]" value="{|$val.name|}">
				<input type="hidden" name="aitemcount[]" value="{|$val.count|}">				
				<input type="hidden" name="aitemcolor[]" value="{|$val.color|}">
				<input type="hidden" name="aitemid[]" value="{|$val.itemid|}">
			</td>
		</tr>
		{|/if|}
		{|/foreach|}
		</table>
	</td>
</tr>
<!--endline-->
</table>

<table width=100%>
{|foreach item=val key=key from=$raidData.event|}
<tr>
	<td class="title">
		{|$lang.event|}{|$lang.name|}:<input type="text" name="boss[{|$key|}]" value="[{|$raidData.start|date_format:"%Y-%m-%d %H:%M"|}]{|$raidData.zone|}-{|$key|}" size="60" />
	</td>
</tr>
<tr>
	<td >{|$lang.note32|}:<input type="text" name="dis[{|$key|}]" value="{|$val.costs|}" />
		
		{|if $smarty.cookies.wow_cfg_ispt == '1'|}
			<input name="ispt[{|$key|}]" type="checkbox" value="1" checked>
		{|else|}
			<input name="ispt[{|$key|}]" type="checkbox" value="1">
		{|/if|}		
		<font color="red">{|$lang.note33|}</font>
		{|$val.totalCosts|}/{|$val.usernum|}={|$val.totalCosts/$val.usernum|}
	</td>
</tr>
<tr>
	<td >{|$lang.time|}:{|$val.time|date_format:"%Y-%m-%d %H:%M"|}</td>
</tr>
<tr>
	<td >{|$lang.user|}:{|$val.usernum|}</td>
</tr>

<tr>
	<td>
		<textarea name="raidmember[{|$key|}]" rows="20" cols="20" class="input">
{|foreach item=ii from=$val.member|}
{|$ii|}
{|/foreach|}
</textarea>
	</td>
</tr>
<tr>
	<td>
		<table width="60%">
			<tr class="title">
				<td>{|$lang.item|}</td>
				<td>{|$lang.note23|}</td>
				<td>{|$lang.dkp|}</td>
				<td>{|$lang.note24|}</td>
			</tr>
			{|foreach item=ival key=ikey from=$val.item|}
			<tr bgcolor="{|cycle values="#252525,#161616"|}">
				<td>
					<font color="#{|$ival.color|}">{|$ival.name|}</font>
					<input type="hidden" name="itemname[{|$key|}][]" value="{|$ival.name|}">
					<input type="hidden" name="itemcount[{|$key|}][]" value="{|$ival.count|}">
					<input type="hidden" name="itemid[{|$key|}][]" value="{|$ival.itemid|}">
					<input type="hidden" name="itemcolor[{|$key|}][]" value="{|$ival.color|}">
					<input type="hidden" name="itemboss[{|$key|}][]" value="{|$ival.boss|}">
				</td>
				<td>{|$ival.count|}</td>
				<td><input type="text" name="itemcosts[{|$key|}][]" value="{|$ival.costs|}" size="5"></td>
				<td><input type="text" name="itemplayer[{|$key|}][]" value="{|$ival.player|}"></td>
			</tr>
			{|/foreach|}
		</table>
	</td>
</tr>
<tr><td>&nbsp;</td></tr>
{|/foreach|}
<tr><td align="center"><input type="submit" name="xmlsubmit"></td></tr>
</table>

</form>
</body>
</html>
